package web;

import com.bwsoft.util.PDFUtil;
import org.junit.Test;

import java.io.File;

public class PDFJieXi {

	@Test
	public void test() {
		String[] strs=PDFUtil.readPDF("D:\\JST-FJ201500341.pdf");
		System.out.println("编号:"+strs[9]);
		System.out.println("产品名称:"+strs[17]);
		System.out.println("生产日期:"+strs[2].split("/")[0]);
		System.out.println("批号:"+strs[2].split("/")[1]);
		
	}
	
	@Test
	public void test2() {
		String[] strs=PDFUtil.readPDF(new File("D:\\JST-FJ201500341.pdf"));
		System.out.println("编号:"+strs[9]);
		System.out.println("产品名称:"+strs[17]);
		System.out.println("生产日期:"+strs[2].split("/")[0]);
		System.out.println("批号:"+strs[2].split("/")[1]);
		
	}

}
